/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VolPro.Entity.SystemModels;

namespace VolPro.Entity.DomainModels
{
    [Entity(TableCnName = "节点工步表",TableName = "work_procedure",DBServer = "SmesDbContext")]
    public partial class work_procedure:SmesEntity
    {
        /// <summary>
       ///工步编号
       /// </summary>
       [Display(Name ="工步编号")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int StepNo { get; set; }

       /// <summary>
       ///工序名称
       /// </summary>
       [Display(Name ="工序名称")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string Step_name { get; set; }

       /// <summary>
       ///标准工时（小时）
       /// </summary>
       [Display(Name ="标准工时（小时）")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public decimal standard_time { get; set; }

       /// <summary>
       ///准备时间（小时）
       /// </summary>
       [Display(Name ="准备时间（小时）")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? setup_time { get; set; }

       /// <summary>
       ///工艺路线节点ID
       /// </summary>
       [Display(Name ="工艺路线节点ID")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int Process_id { get; set; }

       /// <summary>
       ///工序ID
       /// </summary>
       [Key]
       [Display(Name ="工序ID")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int StepId { get; set; }

       
    }
}